package banxi.ktv.mdao.song;

import banxi.ktv.entity.Song;
import banxi.ktv.mdao.MybatisHelper;

public class SongMapperImpl implements SongMapper {
	
	private static SongMapper mapper =  new SongMapperImpl();
	
	private SongMapperImpl(){}

	public static SongMapper getMapper(){
		return mapper;
	}
	
	public Song findById(int id) {
		SongMapper mapper = MybatisHelper.getSqlSession().getMapper(SongMapper.class);
		Song song = mapper.findById(id);
		return song;
	}

}
